USE [aircond]
GO

/****** Object:  Table [dbo].[ROOM]    Script Date: 03/15/2013 00:03:44 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[ROOM](
	[ROOM_ID] [numeric](19, 0) IDENTITY(1,1) NOT NULL,
	[createDate] [datetime] NULL,
	[createUser] [varchar](255) NULL,
	[updateDate] [datetime] NULL,
	[updateUser] [varchar](255) NULL,
	[version] [int] NOT NULL,
	[description] [varchar](255) NULL,
	[roomName] [varchar](255) NULL,
	[roomNo] [int] NOT NULL,
	[roomType] [varchar](255) NULL,
	[status] [varchar](255) NULL,
	[FLOOR_ID] [numeric](19, 0) NULL,
PRIMARY KEY CLUSTERED 
(
	[ROOM_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[ROOM]  WITH CHECK ADD  CONSTRAINT [FK2678DB2160AEED] FOREIGN KEY([FLOOR_ID])
REFERENCES [dbo].[FLOOR] ([FLOOR_ID])
GO

ALTER TABLE [dbo].[ROOM] CHECK CONSTRAINT [FK2678DB2160AEED]
GO

